package com.backend.common.event;

import com.backend.modules.task.entity.TaskSubmission;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * 任务提交事件
 */
@Getter
public class TaskSubmissionEvent extends ApplicationEvent {
    
    /**
     * 任务提交
     */
    private final TaskSubmission submission;
    
    /**
     * 是否审核通过
     */
    private final boolean approved;
    
    public TaskSubmissionEvent(Object source, TaskSubmission submission, boolean approved) {
        super(source);
        this.submission = submission;
        this.approved = approved;
    }
} 